<template lang="jade">
ul.bloglist
	li(v-for="item in items")
		h1 {{item.title}}
		div.info {{item.content}}

</template>

<script>
import '../assets/sass/index/index.scss'
import {Api_Blog_list} from '../config/api'

export default {
	data(){
		return{
			items:'',
		}
	},
	methods:{
		fetch:function(next){
			var that = this
			var param = {
				page:1,
				page_number:10
			}

			this.$http({url:Api_Blog_list, data:param,  methods:'POST'}).then(
				function(rep){
					that.items = rep.data.data.um_info;
					console.log(rep);
					next();
	      });
		}
	},
	route:{
		activate(transition){
			this.fetch(function(){
				transition.next();
			})
		}
	}
}

</script>